package com.qf.hospital.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import serializer.CardIdInformation;

import java.util.Date;

/**
 * @author Administrator
 * @version V1.0
 * @Project hospital
 * @Package com.qf.hospital.vo
 * @Description: ${TODO}
 * @Date 2021/10/22 11:12
 */
public class ReportVO2 {

    /**
     * 病人id
     */
    private Integer reportId;

    /**
     * 病人姓名
     */
    private String reportName;


    /**
     * 就诊科室名称
     */
    @JsonProperty(value = "department")
    private String departmentName;

    /**
     * 挂号类型
     */
    @JsonProperty("type")
    private String registeredName;

    /**
     * 医生名称
     */
    private String doctorName;

    /**
     * 挂号时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date time;



    /**
     * 手机号
     */
    private String phone;

    /**
     * 身份号id
     */
    @JsonSerialize(using = CardIdInformation.class)
    private String carid;


    /**
     * 处方划价-性别
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String sex;
    /**
     * 处方划价-年龄
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer age;
    /**
     * 处方划价-挂号价格
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Double price;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "ReportVO{" +
                "reportId=" + reportId +
                ", reportName='" + reportName + '\'' +
                ", departmentName='" + departmentName + '\'' +
                ", registeredName='" + registeredName + '\'' +
                ", doctorName='" + doctorName + '\'' +
                ", time=" + time +
                ", phone='" + phone + '\'' +
                ", carid='" + carid + '\'' +
                '}';
    }

    public Integer getReportId() {
        return reportId;
    }

    public void setReportId(Integer reportId) {
        this.reportId = reportId;
    }

    public String getReportName() {
        return reportName;
    }

    public void setReportName(String reportName) {
        this.reportName = reportName;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getRegisteredName() {
        return registeredName;
    }

    public void setRegisteredName(String registeredName) {
        this.registeredName = registeredName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCarid() {
        return carid;
    }

    public void setCarid(String carid) {
        this.carid = carid;
    }
}
